<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<title>物料情况</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>

<table border="1" cellpadding="2" cellspacing="0" style="margin-top: 2px; font-size:14px; border-collapse: collapse" bordercolor="#111111" width="100%">
   <tr align="center">
     <th width="40">序号</th>
     <th>大类</th>
     <th>小类</th>	 
	 <th>物料(名称+规格)</th>
   </tr>
   {[foreach key=key1 item=aa from=$result]}
   {[assign var="no1" value="`$key1+1`"]}   
   <tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
     <td>{[$no1]}</td>
     <td>{[$item.category]}</td>
     <td>{[$item.subclass]}</td> 	 
	 <td>{[$item.name]}({[$item.standard]})</td> 
  </tr>
  <tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
     <td></td>     
     <td colspan="4">
     <table border="1" cellpadding="2" cellspacing="0" style="margin-top: 2px; font-size:14px; border-collapse: collapse" bordercolor="#111111" width="100%">
       <tr align="center">
        	<th width="80">入库序号</th>
        	
			<th width="100">单价</th>
			<th width="100">数量</th>
			<th width="100">单位</th>
			<th>备注</th>
		
			<th width="100">收料人</th>
	 	 	<th width="150">创建时间</th>
     {[foreach name=outer key=key item=item from=$aa._in]}
     {[assign var="no2" value="`$key+1`"]}
     	<tr align="center">
		     <td>{[$no2]}</td>
		     
			<td>{[$item.price]}</td>
			<td>{[$item.amount|string_float]}</td>
			<td>{[$item.unit]}</td>
			
			<td>{[$item.content|truncate:21:"...":true]}</td>
			<td>{[$item.emp_t]}</td>
	
		 	<td>{[$item.createtime]}</td>
		</tr>
     {[/foreach]}
     </table>
     
     <table border="1" cellpadding="2" cellspacing="0" style="margin-top: 2px; font-size:14px; border-collapse: collapse" bordercolor="#111111" width="100%">
       <tr align="center">
        	<th width="80">出库序号</th>
        	
			<th width="100">单价</th>
			<th width="100">数量</th>
			<th width="100">单位</th>
			<th>备注</th>
		
			<th width="100">出库人</th>
	 	 	<th width="150">创建时间</th>
     {[foreach name=outer key=key item=item from=$aa._out]}
     {[assign var="no2" value="`$key+1`"]}
     	<tr align="center">
		     <td>{[$no2]}</td>
		     
			<td>{[$item.price]}</td>
			<td>{[$item.amount|string_float]}</td>
			<td>{[$item.unit]}</td>
			
			<td>{[$item.content|truncate:21:"...":true]}</td>
			<td>{[$item.emp_t]}</td>
	
		 	<td>{[$item.createtime]}</td>
		</tr>
     {[/foreach]}
     </table>
     
     <table border="1" cellpadding="2" cellspacing="0" style="margin-top: 2px; font-size:14px; border-collapse: collapse" bordercolor="#111111" width="100%">
       <tr align="center">
        	<th width="80">库存情况</th>
        	
			<th width="100">单价</th>
			<th width="100">数量</th>
			<th width="100">单位</th>
			<th>备注</th>
		
			<th width="100"></th>
	 	 	<th width="150">创建时间</th>
     {[foreach name=outer key=key item=item from=$aa._kc]}
     {[assign var="no2" value="`$key+1`"]}
     	<tr align="center">
		     <td>{[$no2]}</td>
		     
			<td>{[$item.price]}</td>
			<td>{[$item.amount|string_float]}</td>
			<td>{[$item.unit]}</td>
			
			<td>{[$item.content|truncate:21:"...":true]}</td>
			<td></td>
	
		 	<td>{[$item.createtime]}</td>
		</tr>
     {[/foreach]}
     </table>
     </td>
  </tr>  
  {[/foreach]}
</table>
</form>

</body>
</html>
